package com.example.springboot.service;

import com.example.springboot.pojo.PageBean;
import com.example.springboot.pojo.Result;
import com.example.springboot.pojo.User;

public interface UserService {

    //根据房间号查询业主
    User findByRoomNumber(String roomNumber);

    PageBean<User> getAllUser(Integer pageNum,Integer pageSize);
    //添加用户
    void addUser(String roomNumber, String name, String id, String phoneNumber, String password,String email);

    void updateUser(String roomNumber, String name, String id, String phoneNumber,String email);

    void updatePassword(String email,String password);

    void deleteUser(String roomNumber);

    User findByEmail(String email);
}
